package com.cropdoctor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cropdoctor.model.dto.PrePublishCourseDto;
import com.cropdoctor.model.po.CourseInfoPo;
import com.cropdoctor.model.po.PrePublishCoursePo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PrePublishCourseMapper extends BaseMapper<PrePublishCoursePo> {
    PrePublishCourseDto getInfo(@Param("courseId") Long courseId);

    List<CourseInfoPo> getMyCourseInfo(@Param("id") long userId, @Param("status")String auditStatus);

    CourseInfoPo getSingleCourseInfo(@Param("id") long courseId, @Param("status") String auditStatus);
}
